跳到主要内容

callModule

Defines the method used to execute a remotely located script following a link.

Syntax

expression.callModule(url, callback, isClose);

expression - A variable that represents a Plugin class.

Parameters

NameRequired/OptionalData typeDefaultDescription
urlRequiredstringThe resource code URL.
callbackRequiredfunctionThe result that the method returns.
isCloseRequiredbooleanDefines whether the plugin window must be closed after the code is executed or left open waiting for another action. The true value is used to close the plugin window after executing a remotely located script. The false value is used to execute the code and leave the window open waiting for the next action.

Returns

This method doesn't return any data.

Example

window.Asc.plugin.callModule("./templates/" + _templates[_index][0] + "/script.txt", function(content) {
_templates_code[_index] = content;
});